<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<!DOCTYPE HTML>
<html>
<head>
	<%@include file="/WEB-INF/views/include.jsp"%>
</head>
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 后台用户管理 <span class="c-gray en">&gt;</span> 后台列表 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<div class="page-container">
	<div class="cl pd-5 bg-1 bk-gray mt-20"> 
		<span class="l">
			<a class="btn btn-primary radius" onclick="add_user('添加后台用户','${base}/admin/admin/add.do','','400');" href="javascript:;"><i class="Hui-iconfont">&#xe600;</i> 添加后台用户</a>
		</span> 
		<span class="r">共有数据：<strong>${list.size()}</strong> 条</span> 
	</div>
	<div class="mt-20">
		<table class="table table-border table-bordered table-bg table-hover table-sort">
			<thead>
				<tr class="text-c">
					<th width="25"><input type="checkbox" name="" value=""></th>
					<th width="80">序号</th>
					<th width="200">用户名</th>
					<th width="200">开户时间</th>
					<th width="80">是否已启用</th>
					<th width="120">操作</th>
				</tr>
			</thead>
			<tbody>
				<c:forEach items="${list}" var="list" varStatus="status">
					<tr class="text-c">
						<td><input type="checkbox" value="" name=""></td>
						<td>${status.index+1}</td>
						<td>${list.username}</td>
						<td><fmt:formatDate value="${list.registerTime}"  pattern="yyyy-MM-dd HH:mm:ss" type="date" dateStyle="long" /></td>
						<td class="td-status td-status${list.id}">
							<span class="label ${list.locked ? '' : 'label-success' } radius">${list.locked ? '已停用' : '已启用' }</span>
						</td>
						<td class="td-manage">
							<a style="text-decoration:none" onClick="chang_user(this,'${list.id}','${list.locked}');" href="javascript:;" title="${list.locked ? '启用' : '停用' }"><i class="Hui-iconfont">${list.locked ? '&#xe615;' : '&#xe631;' }</i></a>
<!-- 							<a title="编辑" href="javascript:;" onclick="user_edit('后台用户编辑','${base}/admin/user/edit.do','2','800','500')" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe6df;</i></a> -->
							<a title="删除" href="javascript:;" onclick="user_del(this,'${list.id}')" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe6e2;</i></a>
						</td>
					</tr>
				</c:forEach>
			</tbody>
		</table>
	</div>
</div>
<script type="text/javascript" src="${base}/common/js/admin/list.js?v=${v}"></script> 
</body>
</html>